KoverLogTaskConfig

Configuration of coverage printing to the log for current report variant.

log {
    onCheck = true

    filters {
        // ...
    }
    header = null
    format = "<entity> line coverage: <value>%"
    groupBy = GroupingEntityType.APPLICATION
    coverageUnits = CoverageUnit.LINE
    aggregationForGroup = AggregationType.COVERED_PERCENTAGE
}

Properties

Link copied to clipboard
abstract val aggregationForGroup: Property<AggregationType>

Specifies aggregation function that will be calculated over all the units of the same group.

Link copied to clipboard
abstract val coverageUnits: Property<CoverageUnit>

The type of application code division (unit type) whose unit coverage will be considered independently.

Link copied to clipboard
abstract val format: Property<String>

Format of the strings to print coverage for the specified in groupBy group.

Link copied to clipboard
abstract val groupBy: Property<GroupingEntityType>

Specifies by which entity the code for separate coverage evaluation will be grouped.

Link copied to clipboard
abstract val header: Property<String>

Add a header line to the output before the lines with coverage.

Link copied to clipboard
abstract val onCheck: Property<Boolean>

Print coverage when running the check task.